
import router from '@/router';
import {useUserStore} from'@/stores/user'
import { showToast } from 'vant';
export default function checkLogin(){
	const {isLogin} = useUserStore()
	if(!isLogin){
		showToast('您还未登陆,请先登陆')
		setTimeout(item=>{
			router.push('/login')
		},1000)
		return false
	}else{
		return true
	}
}